package com.peakmain.wanandroid.netmodule.net.http.params;

import okhttp3.Request;
import okhttp3.RequestBody;

/**
 * author ：Peakmain
 * version : 1.0
 * createTime：2020/2/22
 * mail:2726449200@qq.com
 * describe：get请求实现类
 */
public class GetRequest extends BaseRequest<GetRequest> {


    public GetRequest() {
        super();
    }

    @Override
    protected RequestBody generateRequestBody() {
        return null;
    }

    @Override
    protected Request buildRequest(RequestBody requestBody) {
        Request.Builder requestBuilder = new Request.Builder();
        appendHeaders(requestBuilder);
        url = appendParams(url, mParams.urlParamsMap);
        return requestBuilder.get().url(url).tag(tag).build();
    }
}
